create_file_list:
	@echo ""                                                             ; \
	find $(dir_code)/code \( -name "*.h" -o -name "*.cpp" -o -name ".c" \) \
		>> $(dir_dvp)/.files                                         ; 





#@public@|emacs|Generates an 'ebrowser' and an 'etags' file for the Project
#@public_detailed@@|emacs|Syntax: make project=<project-name> emacs 
#@public_detailed@@|emacs|The BROWSE and TAGS files are generated in 'tenacitas.build_system/cpp/bin/<project-name>'
emacs:
	$(show) ""                                                           ; \
	echo "**************************************** "                     ; \
	echo "Generating browser info for $(project) "                       ; \
	rm -f $(dir_dvp)/.files 2> /dev/null                                 ; \
	$(make_cmd) chain chain_target=create_file_list                      ; \
	$(make_cmd) create_file_list                                         ; \
	ebrowse --files=$(dir_dvp)/.files                                      \
                       -o $(dir_prj)/BROWSE 2> /dev/null                     ; \
	cat $(dir_dvp)/.files | xargs etags -o $(dir_prj)/TAGS               ; 

